package com.dk.logc.config;

import com.dk.logc.business.SuperBusiness;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author 林道敬
 * @Date 2024-01-11
 * @Description
 **/
public class CountFactory {

    private static Map<String, SuperBusiness> COUNT_REGISTERS = new HashMap<>();


    public static void register(String code, SuperBusiness superBusiness) {
        if (null != code && !"".equals(code)) {
            COUNT_REGISTERS.put(code, superBusiness);
        }
    }


    public static SuperBusiness get(String code) {
        return COUNT_REGISTERS.get(code);
    }
}
